package com.demo.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.demo.dao.DeptMapper;
import com.demo.entity.DeptEntity;
import com.demo.service.DeptService;
import com.demo.util.JsonResult;

@Service
public class DeptServiceImpl implements DeptService {
	
	@Autowired
	private DeptMapper deptMapper;
	

	@Override
	public JsonResult getDeptAll() {
		List<DeptEntity> result = deptMapper.getDeptAll();
		return new JsonResult("查询成功", result);
	}

}
